import request from "../utils/request.js";
import {multipleDelete} from "../utils/common.js"

export function remove(row){
    return request.delete("/tag/delete",{
        params: {
            ids: row.id
        }
    })
}

export function multipleRemove(row){
    return request.delete("/tag/delete",{
        params: {
            ids: multipleDelete(row)
        }
    })
}

export function edit(tag){
    return request.put("/tag/edit",tag)
}

export function add(tag){
    return request.post("/tag/add",tag)
}

export function top(tag){
    return request.post("/tag/top",tag)
}
